package com.gxa.modules.sys.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.common.utils.PageUtils;
import com.gxa.common.utils.Query;
import com.gxa.modules.sys.entity.Role;
import com.gxa.modules.sys.mapper.RoleMapper;
import com.gxa.modules.sys.service.RoleService;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class RoleServiceImpl  extends ServiceImpl<RoleMapper, Role> implements RoleService {
    @Override
    public PageUtils queryRole(Map<String, Object> params) {
    IPage<Role> page = this.page(new Query<Role>().getPage(params));
        PageUtils pageUtils = new PageUtils(page);
        return pageUtils;
    }
}
